using System;
using System.Collections.Generic;
using System.Windows.Forms;
using usm.SolDev.Common;

namespace usm.SolDev.App
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main ()
        {
            SolDevLogger.Info("Application started, initializing ...");
            Application.EnableVisualStyles ();
            Application.SetCompatibleTextRenderingDefault (false);
            usm.SolDev.UI.User.UserLoginForm userLogin = new usm.SolDev.UI.User.UserLoginForm();

            SolDevLogger.Info("Log into the system ...");
            if (userLogin.ShowDialog() == DialogResult.OK)
            {
                SolDevLogger.Info("Logged in, starting main thread ...");
                Application.Run(new MainForm());
            }
        }
    }
}